package mx.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import mx.dao.EmployeeDao;
import mx.entity.Employee;
import mx.service.EmployeeService;

@Service
public class EmployeeServiceImpl implements EmployeeService {

	@Resource
	private EmployeeDao employeeDao;

	public List<Employee> list(Map<String, Object> map) {
		return employeeDao.list(map);
	}

	public Long getTotal(Map<String, Object> map) {
		return employeeDao.getTotal(map);
	}

	public int update(Employee employee) {
		return employeeDao.update(employee);
	}

	public int delete(Integer id) {
		return employeeDao.delete(id);
	}

	public int add(Employee employee) {
		return employeeDao.add(employee);
	}

}
